package cn.itcast.erp.time;

import cn.itcast.erp.service.StorealertService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class Time {
    @Resource
    private StorealertService storealertService;

    @Scheduled(cron = "0 0 18 * * ?")
    public  void  run(){
        storealertService.sendStorealerMail();
    }
}
